import Https from "@/utils/Https";

export const queryVenueReq = async (params) =>
  await Https.post("/venue/info/venueList", {
    current: 1,
    pageSize: 1000,
  });
export const queryLabelReq = async (params) =>
  await Https.post("/venue/label/labelList", {
    current: 1,
    pageSize: 10000,
  });

export const queryPageDataReq = async (params) =>
  await Https.post("/venue/classroom/roomList", params);

// tenant/

export const addItemReq = async (params) =>
  await Https.post("/venue/classroom/addRoom", params, true);

export const updateItemReq = async (params) =>
  await Https.post("/venue/classroom/updateRoom", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/venue/classroom/logicDeleteRoom", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/venue/classroom/roomDetail", params);

export const toggleStateReq = async (params) =>
  await Https.post("/venue/classroom/updateRoom", params, true);
